package cc.lirns.utils.result.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author lirns
 * @date 2021/12/2 14:43
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TableResult extends EntityResult {

    public final Integer count;

    public TableResult() {
        count = null;
    }

    public TableResult(Integer code, String msg, Object data, Integer count) {
        super(code, msg, data);
        this.count = count;
    }

    @Override
    public String toString() {
        return "TableResult{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                ", count=" + count +
                '}';
    }
}
